/*
 *  BaseEntity.cpp
 *  West World
 *
 *  Created by Jacopo Musso on 24/03/10.
 *  Copyright 2010 IapoSoft. All rights reserved.
 *
 */
#include "BaseEntity.h"
#include "Vector2.h"

int BaseEntity::m_iNextValidID = 0;

BaseEntity::BaseEntity(float maxSpeed, Vector2 pos, Vector2 facing, Vector2 speed)
						:m_maxSpeed(maxSpeed),
							m_pos(pos),
							m_speed(speed),
							m_facing(facing)
{
	SetID();
}

void BaseEntity::SetID(){

	m_ID = m_iNextValidID;
	m_iNextValidID++;

}


